package com.core.springaop;

import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

public class MyAopCache {
    private static Map<String, Point> beferAop = new ConcurrentHashMap<>();
    private static Map<String, Point> afterAop = new ConcurrentHashMap<>();

    private static Set<String> proClass = new LinkedHashSet<>();

    public static Map<String, Point> getBeferAop() {
        return beferAop;
    }

    public static Map<String, Point> getAfterAop() {
        return afterAop;
    }

    public static Set<String> getProClass() {
        return proClass;
    }

    public static void addSet(String name) {
        proClass.add(name);
    }

    public static void putbefor(String name, Point point) {

        beferAop.put(name, point);
    }


    public static void putafter(String name, Point point) {

        afterAop.put(name, point);
    }

}
